SK="object"==typeof SK?SK:{},SK.Core=SK.Core||{},SK.Core.Entry=SK.Core.Entry||{},SK.Core.Entry.Gallery=SK.Core.Entry.Gallery||{},SK.Core.Entry.Gallery.display=function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=315)}({0:function(e,t){e.exports=React},1:function(e,t,i){"use strict";i.d(t,"t",(function(){return n})),i.d(t,"d",(function(){return r})),i.d(t,"m",(function(){return a})),i.d(t,"s",(function(){return o})),i.d(t,"q",(function(){return l})),i.d(t,"e",(function(){return s})),i.d(t,"f",(function(){return c})),i.d(t,"g",(function(){return u})),i.d(t,"i",(function(){return g})),i.d(t,"o",(function(){return m})),i.d(t,"a",(function(){return p})),i.d(t,"u",(function(){return f})),i.d(t,"w",(function(){return d})),i.d(t,"v",(function(){return h})),i.d(t,"n",(function(){return b})),i.d(t,"c",(function(){return y})),i.d(t,"j",(function(){return v})),i.d(t,"h",(function(){return O})),i.d(t,"b",(function(){return w})),i.d(t,"r",(function(){return j})),i.d(t,"k",(function(){return P})),i.d(t,"l",(function(){return S})),i.d(t,"p",(function(){return E})),i.d(t,"B",(function(){return k})),i.d(t,"A",(function(){return R})),i.d(t,"x",(function(){return I})),i.d(t,"y",(function(){return N})),i.d(t,"z",(function(){return x}));const n="thumbnails",r="filmstrip",a="mosaic",o="slideshow",l="slider",s=[{label:"Presentación de diapositivas",value:o,css:"sk-ig-type-slideshow"},{label:"Tira de imágenes",value:r,css:"sk-ig-type-filmstrip"},{label:"Miniaturas",value:n,css:"sk-ig-type-thumbnails"},{label:"Mosaico",value:a,css:"sk-ig-type-mosaic"},{label:"Control deslizante",value:l,css:"sk-ig-type-slider"}],c=[{label:"Ninguno",value:"none",css:"sk-ig-effect-none"},{label:"Antirreflectante ",value:"polaroid",css:"sk-ig-effect-polaroid"},{label:"Reflejo",value:"reflection",css:"sk-ig-effect-reflection"},{label:"Escala de grises",value:"grayscale",css:"sk-ig-effect-grayscale"},{label:"Sepia",value:"sepia",css:"sk-ig-effect-sepia"},{label:"Luz",value:"light",css:"sk-ig-effect-light"},{label:"Oscuro",value:"dark",css:"sk-ig-effect-dark"}],u=[{label:"Original",value:"original",css:"sk-ig-shape-original"},{label:"Diamante",value:"diamond",css:"sk-ig-shape-diamond"},{label:"Hexágono",value:"hexagon",css:"sk-ig-shape-hexagon"},{label:"Octágono",value:"octagon",css:"sk-ig-shape-octagon"},{label:"Óvalo",value:"ellipse",css:"sk-ig-shape-ellipse"},{label:"Círculo",value:"circle",css:"sk-ig-shape-circle"}],g=[{label:"Ninguno",value:"none"},{label:"Fundido",value:"fade"},{label:"Diapositiva",value:"slide"}],m=[{label:"Botones",value:"buttons"},{label:"Botones y números",value:"buttons_and_numbers"},{label:"Puntos",value:"dots"},{label:"Números",value:"numbers"},{label:"Ninguno",value:"none"}],p=["dots","numbers","none"],f=[{label:"Superior",value:"icons-top"},{label:"Derecha",value:"icons-right"},{label:"Inferior",value:"icons-bottom"},{label:"Izquierda",value:"icons-left"}],d=[{label:"Tamaño fijo",value:"static"},{label:"Tamaño de ventana",value:"resizable"}],h=[{label:"Botones",value:"buttons"},{label:"Botones y números",value:"buttons_and_numbers"},{label:"Ninguno",value:"none"}],b=[{value:"top_left",label:"Izquierdo superior"},{value:"top_center",label:"Centrar superior"},{value:"top_right",label:"Derecho superior"},{value:"bottom_left",label:"Izquierda inferior"},{value:"bottom_center",label:"Centrar inferior"},{value:"bottom_right",label:"Derecha inferior"}],y=[{value:"{transitions:['fade']}",label:"Fundido"},{value:"{transitions:['fade','slide'], direction:'left-right'}",label:"Fundido + deslizar de izquierda a derecha"},{value:"{transitions:['fade','slide'], direction:'right-left'}",label:"Fundido + deslizar de derecha a izquierda"},{value:"{transitions:['fade','slide'], direction:'down-up'}",label:"Fundido + deslizar de abajo hacia arriba"},{value:"{transitions:['fade','slide'], direction:'up-down'}",label:"Fundido + deslizar de arriba hacia abajo"},{value:"{transitions:['slide'], direction:'left-right'}",label:"Deslizar de izquierda a derecha"},{value:"{transitions:['slide'], direction:'right-left'}",label:"Deslizar de derecha a izquierda"},{value:"{transitions:['slide'], direction:'down-up'}",label:"Diapositiva hacia arriba-abajo"},{value:"{transitions:['slide'], direction:'up-down'}",label:"Deslizar hacia arriba y hacia abajo"}],v={IMAGE_LIST:"image_list",UPLOAD_IMAGE:"upload_image",EDIT_IMAGE:"edit_image"},O={DURATION:500,TIMING_FUNCTION:"ease"},w={DURATION:500,DELAY:150,TIMING_FUNCTION:"ease-out",ANIMATION_PREFIX:"animated-caption"},j=500,P=50,S=400,E={MARGIN_RIGHT:35};function k(e){switch(e){case a:case r:case o:return{small:{width:480,height:320,tooltip:"Pequeño"},medium:{width:600,height:400,tooltip:"Mediano"},large:{width:720,height:480,tooltip:"Grande"}};case n:return{small:{width:120,height:90,tooltip:"Pequeño"},medium:{width:200,height:150,tooltip:"Mediano"},large:{width:280,height:210,tooltip:"Grande"}};case l:return{small:{width:600,height:300,tooltip:"Pequeño"},medium:{width:800,height:400,tooltip:"Mediano"},large:{width:1e3,height:500,tooltip:"Grande"}}}}function R(e){switch(e){case a:case r:case o:return{width:200,height:140};case n:return{width:120,height:90};case l:return{width:300,height:150}}}function I(){return{CropImage:"1",GalleryCropIcon:"1",GalleryConfigurationType:"thumbnails",GalleryThumbnailEffect:"none",GalleryThumbnailShape:"original",GalleryVariant:"",GalleryInsideButtons:"0",GalleryPlayButton:"0",GalleryAutoplay:"0",GalleryIconSizeHeight:"80",GalleryIconSizeWidth:"80",GalleryLoop:"1",NavigationPosition:"bottom_center",ImagesPerRow:"3",NavigationType:"none",PopupTransitionDelay:"5",ShowComments:"1",SlideTransitionType:"none",SlideTransitionDelay:"5",ViewerAutoPlay:"0",ViewerCaption:"0",ViewerDim:"0",ViewerLoop:"0",ViewerNav:"buttons",ViewerPlayPause:"0",ViewerPrevNext:"0",ViewerSizeBehaviour:"static",ViewerSizeHeight:"400",ViewerSizeWidth:"400",ViewerZoom:"0",CaptionOffsetTop:"12",CaptionOffsetLeft:"8",CaptionAnimation:"{transitions:['fade','slide'], direction:'right-left'}"}}function N(e){switch(e){case a:case n:return 9;case r:return 6;case o:case l:return 3}}function x(e){const t=k(e),{width:i,height:n}=t.medium;return{Alt:"",CaptionText:"Título de la imagen",CaptionAnimation:" ",CaptionOffsetLeft:"",CaptionOffsetTop:"",CustomThumbnail_url:"",CustomThumbnailSrc_height:"0",CustomThumbnailSrc_width:"0",Info:"",InternalLink:"[popup]",Link:"",LinkRel:"",LinkTarget:"",ResizedImageJSON:{},ResizedThumbnailJSON:{},Size:"0",Image_url:SK.Singletons.env.get("static_image_server")+"/Shared/Images/thumbnails_preview.svg#SYSTEM",Src_height:n,Src_width:i,UseFilenameCaption:"0"}}},100:function(e,t,i){},14:function(e,t){e.exports=ReactDOM},315:function(e,t,i){"use strict";i.r(t);var n=i(0),r=i.n(n),a=i(1);function o(e){return{images:e.Images,galleryType:e.GalleryConfigurationType,galleryVariant:e.GalleryVariant,navigationType:e.NavigationType,navigationPosition:e.NavigationPosition,effect:e.GalleryThumbnailEffect,shape:e.GalleryThumbnailShape,thumbnailWidth:e.ThumbnailWidth,thumbnailHeight:e.ThumbnailHeight,transitionDelay:e.SlideTransitionDelay,transitionType:e.SlideTransitionType,captionAnimation:e.CaptionAnimation,captionOffset:{top:e.CaptionOffsetTop,left:e.CaptionOffsetLeft},loop:"1"==e.GalleryLoop,autoplay:"1"==e.GalleryAutoplay,showCaption:"1"==e.ShowComments,insideButtons:"1"==e.GalleryInsideButtons,playPauseButton:"1"==e.GalleryPlayButton,cropImage:"1"==e.CropImage,cropIcon:"1"==e.GalleryCropIcon,iconWidth:e.GalleryIconSizeWidth,iconHeight:e.GalleryIconSizeHeight}}function l(e,t,i){const n=e.CustomThumbnail_url&&!t.original_source;return{src:n?e.CustomThumbnail_url:e.Image_url,width:n?e.CustomThumbnailSrc_width:e.Src_width,height:n?e.CustomThumbnailSrc_height:e.Src_height,json:n?e.ResizedThumbnailJSON:e.ResizedImageJSON}[i]}function s(e,t){return Number(e)<=Number(t)}function c(e,t){const i=[];if(!e||"object"!=typeof e)return"";e.realsize={width:t.width,src_url:t.src};for(let t=0,n=(e=Object.keys(e).map((function(t){return e[t]})).sort((function(e,t){return e.width-t.width}))).length;tt.offsetHeight/t.offsetWidth}function v(e){const{imageData:t,options:i,greaterRatio:n,children:r}=e,a=n?"greater-ratio":"lesser-ratio",o=i.cropIcon?"crop":"nocrop";return React.createElement("div",{className:`sk-ig-effect-wrapper css-mode effect-${i.effect} ${o} ${a}`},React.createElement("div",{className:"sk-ig-reflection-wrapper",style:f(t,i)},r))}function O(e,t,{width:i,height:n}){const r=Math.min(i,n)/i,a=Math.min(i,n)/n;return`polygon(${function(e,t,i,n,r){const a=[];for(let o=0;o`${r*(e.x-50)+50}% ${a*(e.y-50)+50}%`).join(", ")})`}function w(e,t){const i=function(e,t){switch(e){case"original":return"none";case"circle":return"circle()";case"ellipse":return"ellipse(50% 40% at 50% 50%)";case"diamond":return O(4,0,t);case"hexagon":return O(6,Math.PI/2,t);case"octagon":return O(8,0,t)}}(e,t);return{clipPath:i,WebkitClipPath:i}}function j(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function P(e){for(var t=1;t"original"!==t?Object(n.cloneElement)(e,{style:P({},e.props.style,{},w(t,{width:i,height:r}))}):e)}function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=Object(n.useRef)(null),o=Object(n.useRef)(null),[l,s]=Object(n.useState)(!0),[c,g]=Object(n.useState)(!1),p=function(e){for(var t=1;t{setTimeout(()=>{const i=o.current;if(!i)return;const n=y(e,i)&&t.galleryType!==a.q;g(n)},0),s(!1),i&&i(e)}}))))))),t.galleryType===a.q?React.createElement("span",{className:"sk-ig-slider-spacer",style:{maxWidth:f+"px",maxHeight:O+"px"}},React.createElement("img",k({},u(e,t),{crossOrigin:"anonymous"}))):null)};function x(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function T(e,t,i){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _(e){const{imageData:t,caption:i,options:r,styles:o}=e,l=function(e){for(var t=1;t0==t.UseFilenameCaption?function(e=""){if(SK.Singletons.env.get("server"))return e;if(""===e)return"";const t=document.createElement("textarea");return t.innerHTML="function"==typeof e?e():e,t.value}(t.CaptionText):t.Image_url.split("/").pop().split("#").shift(),[t]);return React.createElement("div",{className:"ig-caption",style:l},React.createElement("div",null,s))}const{ANIMATION_PREFIX:C,DURATION:L,DELAY:D,TIMING_FUNCTION:G}=a.b;function M(e){const{imageData:t,caption:i,options:n,selected:r}=e,a=(e=>{if(!e)return null;const t=e.replace(new RegExp("'","g"),'"').replace("transitions",'"transitions"').replace("direction",'"direction"');return JSON.parse(t)})(i.animation),o={};return r&&(a.transitions.includes("fade")||(o.opacity="1"),o.animation=(e=>{const t=[];e.transitions.includes("fade")&&t.push("fade");const i=(e=>{switch(e){case"left-right":return"slide-right";case"right-left":return"slide-left";case"up-down":return"slide-down";case"down-up":return"slide-top"}})(e.direction);return i&&t.push(i),t.map(e=>`${C}-${e} ${L}ms ${D}ms ${G} both`).join(",")})(a)),React.createElement(_,{imageData:t,options:n,caption:i,styles:o})}var A=function(e){const{caption:t}=e,i=t.animation?M:_;return React.createElement(i,e)};function U(e){const{imageData:t,options:i,caption:n,selected:r,styles:o,onClick:l,onImageLoad:s}=e,{galleryType:c}=i,u=c!==a.q?"ig-slide":"";return React.createElement("div",{className:""+(c===a.q&&t.clone?"ig-transition-slider-item":"ig-transition-item"),style:o,onClick:()=>{const e=SK.Util.getParentWindowProperty("SK");SK.Util.isMobileView()||"smartphone"===e.Singletons.env.get("preview_mode")||"[popup]"===t.InternalLink&&l()}},React.createElement("div",{className:"ig-thumb "+u},React.createElement(N,{imageData:t,options:i,onLoad:s})),n.isVisible?React.createElement(A,{imageData:t,options:i,caption:n,selected:r}):null)}const z={threshold:[0],rootMargin:"50px"};var H=(e,t,i,r,a)=>{Object(n.useEffect)(()=>{const i=function(e){let t=e.length;const i=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const{target:n}=e;!function(e){const t="IMG"===e.tagName?e:e.querySelector("img");t&&(t.src&&t.src===t.dataset.src||(t.srcset=t.dataset.srcset,t.src=t.dataset.src))}(n),i.unobserve(n),t-=1,0===t&&i.disconnect()}})},z);return e.forEach(e=>{i.observe(e)}),i}(e.current.querySelectorAll(t));return()=>i.disconnect()},[i,r,a])};var V=e=>{const{className:t,openImagePreview:i,settings:r,internalLinkUrls:a}=e,{images:o,thumbnailWidth:l,thumbnailHeight:s,effect:c,shape:u,cropImage:g,galleryType:m,showCaption:p,captionOffset:f}=r,d=Object(n.useRef)();return H(d,".ig-img img",o),React.createElement("div",{className:t+" ig-type-thumbnails"},React.createElement("div",{className:"ig-thumbs"},React.createElement("div",{className:"sk-ig-scroll-container ig-slide-item",ref:d},o.map((e,t)=>React.createElement(U,{key:e.Image_url+t,imageData:e,options:{width:l,height:s,effect:c,shape:u,galleryType:m,cropIcon:"original"!==u||g,internalLinkUrls:a},caption:{isVisible:p,offsetTop:f.top,offsetLeft:f.left},onClick:()=>i(t)})))))};var W=e=>{const{settings:t,currentSlide:i,onImageClick:n,images:r,setImageStyles:o,offset:l=0,internalLinkUrls:s}=e,{galleryType:c,thumbnailWidth:u,thumbnailHeight:g,shape:m,effect:p,showCaption:f,captionOffset:d,galleryVariant:h,captionAnimation:b,cropImage:y}=t,v={width:u,height:g,effect:p,shape:m,galleryType:c,cropIcon:"original"!==m||y,internalLinkUrls:s},O={isVisible:f,offsetTop:d.top,offsetLeft:d.left,animation:c===a.s&&"animated_captions"===h?b:null};return r.map((e,t)=>{const r=o?o(t,{data:e,options:v}):{};return React.createElement(U,{key:e.Image_url+t,imageData:e,selected:i===t+l,options:v,caption:O,styles:r,onClick:()=>n(i)})})};function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function B(e){for(var t=1;t{g.current=0!==i},[i]);let m=l,p=null,f={},d=t,h=!1;if("fade"===s&&(p=e=>{const i=t===e;return{opacity:i?"1":"0",transition:i?"opacity 500ms cubic-bezier(0.37, 0.01, 0.63, 1) 0s":"none"}}),"slide"===s){h=c&&l.length>1,m=h?[(b=l)[b.length-1],...b,b[0]]:l,d=t+i,h&&(d+=1);f={transition:`margin-left ${g.current?0:F}ms ${q}`}}var b;return React.createElement("div",{className:"sk-ig-scroll-container ig-mask",ref:u},React.createElement("span",{className:"ig-transition-mgr",style:B({marginLeft:`-${d}00%`},f)}),React.createElement(W,{settings:r,currentSlide:t,onImageClick:o,images:m,setImageStyles:p,offset:h?-1:0,internalLinkUrls:a}))},X=i(5);function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s(!l)},h=Object(X.a)("ig-icon",{"ig-selected":t,"ig-over":l}),{width:O,height:w}=m(r,a);return React.createElement("div",{className:h,onClick:i,onMouseOver:f,onMouseOut:f},React.createElement("div",{className:"sk-ig-dimensions-wrapper",style:{maxWidth:O+"px",maxHeight:w+"px"}},React.createElement("div",{className:"sk-ig-ratio-wrapper",style:b(a),ref:o},React.createElement(v,{imageData:r,options:a,greaterRatio:c},React.createElement(E,{type:a.shape,width:O,height:w},React.createElement("a",{className:"sk-ig-clip-wrapper",style:p},React.createElement("img",Y({crossOrigin:"anonymous"},u(r,a),{onLoad:({target:e})=>{const t=y(e,o.current);g(t)}}))))))))}var te=e=>{const{settings:t,currentSlide:i,changeSelectedImage:r}=e,{images:a,galleryVariant:o,cropIcon:l,shape:s,effect:c,iconWidth:u,iconHeight:g,thumbnailHeight:m}=t,p=["icons-left","icons-right"].includes(o),f=Object(X.a)("ig-icongrid",{"ig-vertical":p,"ig-horizontal":["icons-top","icons-bottom"].includes(o),"ig-icon-reflection":"reflection"===c}),d=Object(n.useRef)();return H(d,".ig-icon img",a),React.createElement("div",{className:f,style:{height:p?m+"px":"auto"}},React.createElement("div",{className:"sk-ui-scrollwrapper"},React.createElement("div",{className:"sk-ig-icon-scroller",ref:d},a.map((e,t)=>React.createElement(ee,{key:e.Image_url+t,imageData:e,onClick:()=>r(t),selected:t===i,options:{width:u,height:g,effect:c,shape:s,cropIcon:"original"!==s||l,iconSize:{height:g}}})))))};function ie(e){const{next:t,onClick:i,disabled:r,onMouseOver:a,onMouseOut:o}=e,[l,s]=Object(n.useState)(!1),c=Object(X.a)("ig-btn",{"ig-prev":!t,"ig-next":t,"ig-disabled":r,"ig-over":l});return React.createElement("div",{className:c,onClick:i,onMouseOver:()=>{a&&a(),s(e=>!e)},onMouseOut:()=>{o&&o(),s(e=>!e)}})}function ne(){return(ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;i[n]=e[n]}return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function ae(e){const{onClick:t,disabled:i}=e,n=re(e,["onClick","disabled"]);return React.createElement(ie,ne({next:!0,disabled:i,onClick:t},n))}function oe(){return(oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;i[n]=e[n]}return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function se(e){const{onClick:t,disabled:i}=e,n=le(e,["onClick","disabled"]);return React.createElement(ie,oe({next:!1,disabled:i,onClick:t},n))}function ce(e){const{isPlaying:t,onPlay:i,onPause:n}=e;return React.createElement("div",{className:"ig-btn "+(t?"ig-pause":"ig-play"),onClick:t?n:i})}function ue(e){const{settings:t,currentSlide:i,onPrevSlide:n,onNextSlide:r,isPlaying:a,onPlay:o,onPause:l}=e,{images:s,loop:c,playPauseButton:u,insideButtons:g}=t,{length:m}=s;return React.createElement(React.Fragment,null,m>1&&g?React.createElement(React.Fragment,null,React.createElement(se,{disabled:!c&&0===i,onClick:n}),React.createElement(ae,{disabled:!c&&i===m-1,onClick:r})):null,m>1&&u?React.createElement(ce,{isPlaying:a,onPlay:o,onPause:l}):null)}function ge(e,t){const[i,r]=Object(n.useState)(!1);return Object(n.useEffect)(()=>{const i=new IntersectionObserver(([e])=>{r(e.isIntersecting)},{rootMargin:t});return i.observe(e.current),()=>{i.disconnect()}},[e]),i}var me=({imageLength:e,currentIndex:t,transitionType:i,loop:r,autoplay:o,transitionDelay:l,suspendAnimation:s})=>{const[c,u]=Object(n.useState)(!1),[g,m]=Object(n.useState)(t||0),[p,f]=Object(n.useState)(0),d="slide"===i&&r,h=Object(n.useCallback)(e=>{m(e)},[]),b=Object(n.useCallback)(()=>{if(d&&g===e-1)return f(1),void setTimeout(()=>{m(0),f(0)},a.h.DURATION);m((g+1)%e)},[g,d,e]),y=Object(n.useCallback)(()=>{if(d&&0===g)return f(-1),void setTimeout(()=>{m(e-1),f(0)},a.h.DURATION);m((g-1+e)%e)},[g,d,e]);return Object(n.useEffect)(()=>{if(c&&!s){const e=setTimeout(()=>{b()},1e3*l);return()=>clearTimeout(e)}},[c,s,l,b]),Object(n.useEffect)(()=>{u(o)},[o]),[{isPlaying:c&&!s,currentSlide:g,slideOffset:p},u,h,b,y]};var pe=e=>{const{settings:t,className:i,openImagePreview:r,suspendAnimation:a,internalLinkUrls:o}=e,{galleryType:l,images:s,autoplay:c,galleryVariant:u,loop:g,transitionType:m,transitionDelay:p}=t,f="ig-navtype-"+u.replace("icons-",""),d=s.length,h=Object(n.useRef)(),b=ge(h,"50px"),[{isPlaying:y,slideOffset:v,currentSlide:O},w,j,P,S]=me({imageLength:d,transitionType:m,loop:g,autoplay:c,transitionDelay:p,suspendAnimation:a||!b});return React.createElement("div",{className:`${i} ig-type-${l} ${f}`},React.createElement("div",{className:"ig-thumbs",ref:h},React.createElement(J,{settings:t,currentSlide:O,slideOffset:v,onImageClick:()=>r(O),internalLinkUrls:o}),React.createElement(ue,{settings:t,currentSlide:O,onPrevSlide:S,onNextSlide:P,isPlaying:y,onPlay:()=>w(!0),onPause:()=>w(!1)})),React.createElement(te,{settings:t,currentSlide:O,changeSelectedImage:j}))};function fe(e){const{imageLength:t,currentSlide:i,onPrevSlide:n,onNextSlide:r,changeCurrentSlide:a,options:o}=e,{type:l,galleryVariant:s,navPosition:c,loop:u,playPauseButton:g}=o;if("none"===l||t<=1)return null;const m="animated_captions"===s,p=Object(X.a)("ig-nav",{"ig-numbers":"numbers"===l,"ig-dots":"dots"===l,"ig-buttons-nums":"buttons_and_numbers"===l,"ig-buttons":"buttons"===l,"ig-nav-top":m&&c.includes("top"),"ig-nav-right":m&&c.includes("right"),"ig-nav-bottom":m&&c.includes("bottom"),"ig-nav-bottom-offset":m&&c.includes("left")&&c.includes("bottom")&&g,"ig-nav-left":m&&c.includes("left"),"ig-nav-center":m&&c.includes("center")});return React.createElement("div",{className:p},["buttons","buttons_and_numbers"].includes(l)&&React.createElement(se,{disabled:!u&&0===i,onClick:n}),"buttons_and_numbers"===l&&React.createElement(React.Fragment,null,React.createElement("div",{className:"ig-num ig-num1"},i+1),React.createElement("div",{className:"ig-num ig-delim"},"/"),React.createElement("div",{className:"ig-num ig-num2"},t)),["buttons","buttons_and_numbers"].includes(l)&&React.createElement(ae,{disabled:!u&&i===t-1,onClick:r}),["numbers","dots"].includes(l)&&new Array(t).fill().map((e,t)=>React.createElement("div",{key:t,className:Object(X.a)({"ig-dot":"dots"===l,"ig-number":"numbers"===l,"ig-selected":t===i}),onClick:()=>a(t)},React.createElement("p",{style:{opacity:"dots"===l?"0":"1"}},t+1))))}var de=e=>{const{className:t,settings:i,openImagePreview:r,suspendAnimation:a,internalLinkUrls:o}=e,{images:l,autoplay:s,galleryVariant:c,navigationType:u,navigationPosition:g,loop:m,playPauseButton:p,transitionType:f,transitionDelay:d}=i,h=l.length,b=Object(n.useRef)(),y=ge(b,"50px"),[{isPlaying:v,slideOffset:O,currentSlide:w},j,P,S,E]=me({imageLength:h,transitionType:f,loop:m,autoplay:s,transitionDelay:d,suspendAnimation:a||!y});return React.createElement("div",{className:`${t} ig-type-slideshow${"animated_captions"===c?"-animated":""}`},React.createElement("div",{className:"ig-thumbs",ref:b},React.createElement(J,{settings:i,currentSlide:w,slideOffset:O,onImageClick:()=>r(w),internalLinkUrls:o}),React.createElement(ue,{settings:i,currentSlide:w,onPrevSlide:E,onNextSlide:S,isPlaying:v,onPlay:()=>j(!0),onPause:()=>j(!1)})),React.createElement(fe,{options:{loop:m,galleryVariant:c,playPauseButton:p,type:u,navPosition:g},imageLength:h,currentSlide:w,changeCurrentSlide:P,onPrevSlide:E,onNextSlide:S}))};var he=({images:e,settings:t,internalLinkUrls:i,onClick:n,onImageLoad:r})=>{const{galleryType:a,thumbnailWidth:o,thumbnailHeight:l,effect:s,shape:c,showCaption:u,captionOffset:g}=t,m={width:o,height:l,effect:s,shape:c,galleryType:a,internalLinkUrls:i};return e.map((e,t)=>React.createElement(U,{key:e.Image_url+t,imageData:e,selected:!0,options:m,caption:{isVisible:u,offsetTop:g.top,offsetLeft:g.left},onClick:()=>n(t),onImageLoad:r}))};function be(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ye(e){for(var t=1;tl.map(e=>Math.min(g(e,{galleryType:a.q,height:f}),I)).reduce((e,t)=>e+t,0)),[_,C]=Object(n.useState)(!1),L=Object(n.useRef)(0),[D,G]=Object(n.useState)(!1),M=ge(b,"50px"),A=Object(n.useMemo)(()=>s&&l.length>1&&x>I,[s,l.length,x,I]),U=Object(n.useCallback)(()=>A?[0,x]:[0,x-I],[x,I,A]),z=Object(n.useCallback)(()=>{var e;1===l.length&&0===y.current.querySelector(".ig-transition-item img").naturalWidth||T((e=y.current).scrollWidth-e.offsetWidth+("polaroid"===d?a.p.MARGIN_RIGHT:0))},[l.length,d,h]),H=l.length,V=Object(n.useMemo)(()=>_&&A?function(e,t,i){let n=0;const r=[],a=[...i.current.querySelectorAll(".ig-transition-item")];for(let i=0;i=t);i+=1){const t=e[i];r.push(ye({clone:!0,immediately:!0},t)),n+=a[i].offsetWidth}return r}(l,I,y):[],[l,A,_,I]),W=Object(n.useMemo)(()=>D?l.map(e=>ye({},e,{immediately:!0})):l,[D,l]),$=Object(n.useCallback)(()=>{const e=U()[1];E(S>e?S-4:S+4),P(e=>e===Oe?we:Oe)},[U,S]),B=Object(n.useCallback)(e=>{if(j===e)return v.current=8,void setTimeout(()=>{v.current=2},a.r);P(e)},[j]),K=Object(n.useCallback)(e=>{if(O||H<=1)return;const[t,i]=U();!s&&S>i||S{k&&R(!1)},[k]);Object(n.useEffect)(()=>{let e=null;if((O||k)&&!r&&M){return e=requestAnimationFrame(()=>{const[e,t]=U();if(S>t||ScancelAnimationFrame(e)}},[S,O,k,r,s,j,U,M]),Object(n.useEffect)(()=>{w(c)},[c]),Object(n.useEffect)(()=>{_&&(z(),N(b.current.offsetWidth),E(0))},[_,p,f,z,l,s]),Object(n.useEffect)(()=>{M&&!D&&G(!0)},[M,D]);const q={width:A?x+I:x,transform:`translateX(-${S}px)`},J=O&&!r,[X,Y]=U();return React.createElement("div",{className:e+" ig-type-slider"},React.createElement("div",{className:"ig-thumbs",ref:b,style:{overflow:"hidden"}},React.createElement("div",{className:"sk-ig-scroll-container ig-mask",style:q,ref:y},React.createElement(he,{images:W,settings:t,onClick:i,internalLinkUrls:o,onImageLoad:()=>{_?z():(L.current+=1,L.current===H&&C(!0))}}),React.createElement("div",{className:"ig-transition-slider-mgr"},React.createElement(he,{images:V,settings:t,onClick:i,internalLinkUrls:o}))),u&&H>1?React.createElement(React.Fragment,null,React.createElement(se,{disabled:!s&&X>=S,onClick:()=>B(we),onMouseOver:()=>K(we),onMouseOut:F}),React.createElement(ae,{disabled:!s&&Y<=S,onClick:()=>B(Oe),onMouseOver:()=>K(Oe),onMouseOut:F})):null,m&&H>1?React.createElement(ce,{isPlaying:J,onPlay:()=>{(!s&&S>Y||Sw(!1)}):null))},Pe=(i(98),i(14));function Se({children:e}){return Object(Pe.createPortal)(e,window.document.body)}i(99);function Ee(){return(Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const t=e.currentTarget.getBoundingClientRect(),i=e.clientX-t.x,n=e.clientY-t.y,r=i/t.width*100,a=n/t.height*100;o(`${r}% ${a}% `)},u=e=>{(e=>{t?i(!1):(i(!0),c(e))})(e)},{zoom:g,src:m,style:p,imageProps:f}=e;return r.a.createElement("div",{className:"sk-image-zoom-container",style:p},r.a.createElement("figure",{className:"sk-image-zoom",style:{backgroundImage:100!==l?`url(${m})`:"none",backgroundSize:l+"%",backgroundPosition:a},onClick:e=>u(e),onMouseMove:e=>(e=>{t&&c(e)})(e),onMouseLeave:()=>(i(!1),void o("50% 50%"))},r.a.createElement("img",Ee({onLoad:()=>{s(g)}},f,{style:Re({},p,{opacity:t?"0":"1"})}))))}Ne.defaultProps={zoom:"300",style:{}};var xe=Ne;function Te(){return(Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{image:t,imageAttributes:i,style:r,dimensionsWrapperStyle:a,showCaption:o,viewerZoom:l,galleryType:s}=e,c=Object(n.useRef)(),[u,g]=Object(n.useState)("100%");return Object(n.useEffect)(()=>{g(c.current.offsetHeight)},[]),React.createElement("div",{className:"ig-transition-item",style:r},React.createElement("div",{className:"sk-ig-table-wrapper"},React.createElement("div",{className:"ig-thumb ig-slide"},React.createElement("div",{className:"ig-img"},React.createElement("div",{className:"sk-ig-dimensions-wrapper",style:a,ref:c},React.createElement("div",{className:"sk-ig-ratio-wrapper"},React.createElement("div",{className:"sk-ig-effect-wrapper"},React.createElement("div",{className:"sk-ig-reflection-wrapper"},React.createElement("a",{className:"sk-ig-clip-wrapper"},l?React.createElement(xe,{src:t.Image_url,style:{maxHeight:u},imageProps:Ce({crossOrigin:"anonymous"},i)}):React.createElement("img",Te({crossOrigin:"anonymous"},i,{style:{maxHeight:u}}))))))))),o?React.createElement(_,{imageData:t,options:{galleryType:s},caption:{}}):null))};var Ge=e=>{const{properties:t,currentImageIndex:i,onClose:r}=e,{Images:a,GalleryConfigurationType:o,ViewerSizeWidth:l,ViewerSizeHeight:s,PopupTransitionDelay:c,ViewerPlayPause:g,ViewerNav:p,ViewerPrevNext:f,ViewerDim:d}=t,h=1==t.ViewerLoop,b=1==t.ViewerAutoPlay,y=1==g,v=1==f,O=1==d,w=a.length,j=Object(n.useRef)(),P=Object(n.useRef)();H(j,".ig-img img",a);const[{isPlaying:S,currentSlide:E},k,R,I,N]=me({imageLength:w,currentIndex:i,transitionType:"fade",loop:h,autoplay:b,transitionDelay:c});Object(n.useEffect)(()=>{const e=j.current.offsetWidth;P.current.style.maxWidth=e+"px",j.current.focus()},[]);const x="static"===t.ViewerSizeBehaviour,T={marginTop:x?parseInt(s,10)/2*-1+"px":null,marginLeft:x?parseInt(l,10)/2*-1+"px":null,maxWidth:x?l+"px":null,maxHeight:x?s+"px":null},_={width:"static"===t.ViewerSizeBehaviour?l:3e3,height:"static"===t.ViewerSizeBehaviour?s:3e3,effect:"none",shape:"none",galleryType:"",cropIcon:!1};return React.createElement(Se,null,React.createElement("div",{className:"sk-ig-liv-large-image-viewer sk-ig-liv-animate",onClick:e=>{e.stopPropagation()}},React.createElement("div",{className:Object(X.a)("ig-viewer",{"sk-ig-liv-static-viewer":x}),style:T},React.createElement("div",{className:"ig-viewer-waypoint",ref:j,tabIndex:"0",onKeyDown:e=>{switch(e.key){case"Escape":r();break;case"ArrowLeft":N();break;case"ArrowRight":I()}}},React.createElement("div",{className:"ig-viewer-close",onClick:r}),React.createElement("div",{className:"sk-ig-liv-content"},React.createElement("div",{className:"ig-thumbs"},React.createElement("div",{className:"ig-mask",ref:P},React.createElement("span",{className:"ig-transition-mgr",style:{marginLeft:`-${E}00%`}}),a.map((e,i)=>{const n=E===i,r={opacity:n?"1":"0",visibility:n?"visible":"hidden",transition:n?"opacity 500ms cubic-bezier(0.37, 0.01, 0.63, 1) 0s":"none"},{width:a,height:l}=m(e,_);return React.createElement(De,{key:e.Image_url+i,style:r,image:e,imageAttributes:u(e,_),galleryType:o,dimensionsWrapperStyle:{maxWidth:a,maxHeight:l},showCaption:1==t.ViewerCaption,viewerZoom:1==t.ViewerZoom})})),v&&w?React.createElement(React.Fragment,null,React.createElement(se,{disabled:!h&&0===E,onClick:N}),React.createElement(ae,{disabled:!h&&E===a.length-1,onClick:I})):null),(y||["buttons","buttons_and_numbers"].includes(p))&&w>1?React.createElement("div",{className:"sk-ig-navigation-options"},React.createElement("div",{className:"sk-ig-nav-cell"},y?React.createElement("div",{className:"ig-viewer-panel ig-viewer-panel-with-navigation"},React.createElement(ce,{isPlaying:S,onPlay:()=>k(!0),onPause:()=>k(!1)})):null),React.createElement("div",{className:"sk-ig-nav-cell"},React.createElement("div",{className:"ig-viewer-panel ig-viewer-panel-with-navigation"},React.createElement("div",{className:"ig-viewer-nav"},["buttons","buttons_and_numbers"].includes(p)&&React.createElement("div",{className:"ig-nav ig-buttons-nums"},React.createElement(se,{disabled:!h&&0===E,onClick:N}),"buttons_and_numbers"===p&&React.createElement(React.Fragment,null,React.createElement("div",{className:"ig-num ig-num1"},E+1),React.createElement("div",{className:"ig-num ig-delim"},"/"),React.createElement("div",{className:"ig-num ig-num2"},w)),React.createElement(ae,{disabled:!h&&E===w-1,onClick:I})))))):null))),React.createElement("div",{className:Object(X.a)("ig-overlay",{"sk-ig-liv-dim-lights":O}),onClick:r})))};i(100);function Me(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;i[n]=e[n]}return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Ae(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ue(e){for(var t=1;t{if(!e)return;const{links:n}=i.pages,r={};for(let e=0,t=n.length;ethis.handleChange("__isPreviewModeEnabled",!0),onDisable:()=>{this.handleChange("__isPreviewModeEnabled",!1),this.state.__showImagePreview&&this.handleChange("__showImagePreview",!1)}}),SK.Singletons.env.get("admin_mode")&&this.getInternalLinkUrls()}setGalleryClassName(){let e="ig-gallery sk-ig-image-gallery";return this.state.Images.length||(e+=" ig-empty-placeholder sk-skip-in-preview"),e}setDefaultPlaceholders(e,t){const i=Object(a.y)(e);return Ue({},t,{Images:Array(i).fill(Object(a.z)(e))})}inAdminArea(){const{__isPreviewModeEnabled:e}=this.state;return SK.Singletons.env.get("admin_mode")&&!e}renderGallery(){const{GalleryConfigurationType:e}=this.state,t=this.state,{__showImagePreview:i,__isPreviewModeEnabled:n,__inEditMode:r}=t,l=Me(t,["__showImagePreview","__isPreviewModeEnabled","__inEditMode"]),s={className:this.setGalleryClassName(),settings:o(!l.Images.length&&SK.Singletons.env.get("admin_mode")?this.setDefaultPlaceholders(e,l):l),openImagePreview:e=>{this.inAdminArea()||this.toggleImagePreview(e)},internalLinkUrls:this.internalLinkUrls,suspendAnimation:r||i};switch(e){case a.t:return React.createElement(V,s);case a.m:case a.d:return React.createElement(pe,s);case a.s:return React.createElement(de,s);case a.q:return React.createElement(je,s)}}render(){const{__showImagePreview:e}=this.state;return React.createElement("div",{className:"ig-gallery-wrapper"},React.createElement("style",null,function(e,t){function i(e){return t[e]}const n="#e"+e,r=[],o=Number(i("ImagesPerRow")),l=Number(i("ThumbnailWidth")),s=Number(i("ThumbnailHeight")),c=i("GalleryConfigurationType"),u=i("GalleryVariant");if(r.push([n," .ig-gallery-no-js.ig-gallery-loading {","height: auto;","opacity : 1;","} ",n," .ig-gallery-no-js.ig-gallery.sk-ig-image-gallery .ig-img-loading {","background: transparent;","} "]),r.push([n," .ig-gallery-loading {","height : ",a.t!==c?s:s*i("Images").length/o,"px","}"]),(a.q===c||a.s===c&&"animated_captions"===u)&&r.push([n," .ig-gallery {","max-width : ",l,"px;","} "]),[a.s,a.m,a.d].includes(c)&&r.push([n," .sk-ig-image-gallery .ig-thumbs {","max-width : ",l,"px;",o?"":`flex-basis : ${l}%;`,"} "]),Number(i("CropImage"))||"original"!==i("GalleryThumbnailShape")||a.q===c||r.push([n," .sk-ig-image-gallery .ig-img {","max-width : ",l,"px;","} ",n," .sk-ig-image-gallery .ig-img img {","max-height : ",s,"px;","} "]),a.t===c&&r.push([n," .sk-ig-image-gallery .ig-img {","height : 100%;","max-height : ",s,"px;","} ",n," .ig-thumb,",n," .ig-caption {","width : ",`min(calc(100cqw - var(--sk-ig-thumb-offset, 0px)), ${l}px);`,"} ",n," .ig-slide-item {",o>0?`max-width: ${o*(l+20)}px;`:"","} "]),a.m===c&&["icons-left","icons-right"].includes(u)&&r.push([n," .ig-icongrid .sk-ui-scrollwrapper {",o>0?`max-width: ${o*(Number(i("GalleryIconSizeWidth"))+20)+22}px;`:"","} ",n," .sk-ig-image-gallery.ig-type-mosaic.ig-navtype-right .ig-icongrid.ig-vertical {",o?"":"width : 100%;","}"]),c!==a.d&&c!==a.m||r.push([n," .ig-icongrid .ig-icon,",n," .ig-icongrid .ig-icon .sk-ig-dimensions-wrapper {","width : ",i("GalleryIconSizeWidth"),"px;","height : ",i("GalleryIconSizeHeight"),"px;","} ",n," .ig-icongrid .ig-icon .clip-wrapper {","max-width : ",i("GalleryIconSizeWidth"),"px;","max-height : ",i("GalleryIconSizeHeight"),"px;","}"]),[a.s,a.m,a.d].includes(c)&&r.push([n," .ig-thumb {","max-height : ",s,"px;","} "]),a.q===c){if(r.push([`${n} .ig-thumbs .ig-img-loading { max-height : 100%; height : ${s}px; } `]),"reflection"===i("GalleryThumbnailEffect")?r.push([n," .sk-ig-image-gallery .ig-mask"," {","padding-bottom :",.3*i("ThumbnailHeight"),"px;","} "]):r.push([n," .sk-ui-scrollwrapper .sk-ui-scrolltrack-hor {","margin-top: 10px","} "]),1==!i("ShowComments")){let e=s;"reflection"===i("GalleryThumbnailEffect")?e=s+.3*i("ThumbnailHeight"):"polaroid"===i("GalleryThumbnailEffect")&&(e=s+70),r.push([n," .ig-mask {","max-height : ",e,"px;","} "])}r.push([n," .sk-ig-slider-spacer,",n," .sk-ig-slider-spacer img {","max-height :",s,"px;","} "]),r.push([n," .ig-empty-placeholder.ig-type-slider .ig-mask > div.ig-transition-item,",n," .ig-empty-placeholder.ig-type-slider .ig-transition-slider-mgr .ig-transition-slider-item {",`width: ${l}px;`,`height: ${s}px;`,"} "])}if([a.t,a.q].includes(c)||"reflection"!==i("GalleryThumbnailEffect")||(r.push([n," .sk-ig-image-gallery .ig-mask {","padding-bottom :",.3*i("ThumbnailHeight"),"px;","} "]),[a.m,a.d].includes(c)&&r.push([n," .ig-icongrid .ig-icon {","padding-bottom :",.3*i("GalleryIconSizeHeight"),"px;","} "]),c===a.s&&"animated_captions"===i("GalleryVariant")&&i("NavigationPosition").indexOf("bottom")&&r.push([n," .sk-ig-image-gallery .ig-nav {","margin-bottom :",.3*i("ThumbnailHeight")+10,"px;","} "])),a.t===c&&"reflection"===i("GalleryThumbnailEffect")&&r.push([n," .sk-ig-image-gallery .ig-img {","padding-bottom : 30%;","} "]),c!==a.t&&"reflection"===i("GalleryThumbnailEffect")&&1==i("GalleryInsideButtons")&&r.push([n," .sk-ig-image-gallery .ig-thumbs .ig-btn.ig-prev,",n," .sk-ig-image-gallery .ig-thumbs .ig-btn.ig-next {","margin-top : -",.3*i("ThumbnailHeight")/2+15,"px;","} "]),c!==a.t&&"reflection"===i("GalleryThumbnailEffect")&&1==i("GalleryPlayButton")&&r.push([n," .sk-ig-image-gallery .ig-btn.ig-play,",n," .sk-ig-image-gallery .ig-btn.ig-pause {","margin-bottom : ",.3*i("ThumbnailHeight"),"px;","} "]),"polaroid"===i("GalleryThumbnailEffect")&&c!==a.q){const e={filmstrip:70,mosaic:70,slideshow:70,thumbnails:16}[c]||0;r.push([n," .ig-thumbs .ig-img:not(.ig-img-loading) .effect-polaroid .sk-ig-reflection-wrapper {","max-height:",s-e,"px;","max-width:",l-e,"px",1==i("CropImage")?" !important":"",";","} ",n," .ig-icongrid .ig-img:not(.ig-img-loading) .effect-polaroid .sk-ig-reflection-wrapper {","max-height:",Number(i("GalleryIconSizeHeight"))-6,"px;","max-width:",Number(i("GalleryIconSizeWidth"))-6,"px;","} "]),!Number(i("CropImage"))&&"original"===i("GalleryThumbnailShape")&&r.push([n," .ig-thumbs .ig-img:not(.ig-img-loading) .effect-polaroid .sk-ig-reflection-wrapper {","height: auto;","width: auto;","} ",n," .ig-thumbs .ig-img:not(.ig-img-loading) .effect-polaroid .sk-ig-reflection-wrapper img {","max-height : ",s-e,"px;","} ",n," .ig-icongrid .ig-img:not(.ig-img-loading) .effect-polaroid .sk-ig-reflection-wrapper img {","max-height : ",Number(i("GalleryIconSizeHeight"))-6,"px;","} "]),c===a.d&&r.push([n," .ig-icongrid .ig-icon { ",["icons-left","icons-right"].includes(i("GalleryVariant"))?"margin-top":"margin-left",": 7px; }"])}return"polaroid"===i("GalleryThumbnailEffect")&&c===a.q&&r.push([n," .ig-transition-item, ",n," .ig-transition-slider-item "," {",`margin: 0 ${a.p.MARGIN_RIGHT}px 65px`,"}",n," .ig-transition-item:first-child "," {","margin-left: 0","}",n," .ig-caption {","transform: translateY( 50px );","}"]),r.map(e=>e.join("")).join("")}(this.props.node_id,this.state)),this.renderGallery(),e?React.createElement(Ge,{properties:this.state,onClose:this.toggleImagePreview,currentImageIndex:this.currentImageIndex}):null,this.inAdminArea()&&React.createElement("div",{className:"ig-gallery-overlay"}))}}},5:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return a}));const n=(...e)=>e.reduce((e,t)=>{if("string"===typeof t)return[...e,t];for(const[i,n]of Object.entries(t))n&&e.push(i);return e},[]).join(" ");function r(e){return Object.entries(e).map(([e,t])=>`${e}=${t}`).join("&")}function a(e){try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}},98:function(e,t,i){},99:function(e,t,i){}});